{% for blogpost in blogposts %}
<div class="blogpost">
<div class="post-header">
<div class="post-details">
  <div>{{ blogpost.date|date:"d.m.Y H:i" }}</div> 
  {% if blogpost.author %}
    <div><b>{{ blogpost.author.nickname }}</b></div>
  {% else %}
	<div>anonymous</div>
  {% endif %}
</div>
<div class="post-title"><a href="/posts/{{ blogpost.url_name }}">
{% if user_info.admin and not blogpost.visible %}
  [*** Hidden]
{% endif %}
{{ blogpost.title|striptags }}
</a>
</div>
<div style="clear:both"></div>
</div>

{% include "part-votes.html" %}
      
<div class="post-content">
{% if blogpost.attached_cube_figure %}
<div style="float:right; margin:8px;">
{{ blogpost.attached_cube_figure|cube_figure_thumbnail|safe }}
</div>
{% endif %}
{{ blogpost.content|striptags|escape|show_hyperlinks|splitlongwords|truncatetext|linebreaks }}</div>
<div style="clear:both"></div>
</div>
{% endfor %}

<div style="text-align:center; margin-bottom:10px;">
{% if posts_prev_page_url %}
<a href="{{ posts_prev_page_url }}"><img src="/template/prev-page.gif" border="0"></a>
{% endif %}

{% if posts_next_page_url %}
<a href="{{ posts_next_page_url }}"><img src="/template/next-page.gif" border="0"></a>
{% endif %}
</div>